package com.boyunv.state.example03;
/*
 *@description
 *  交通灯的状态接口
 *@author boyunv
 *@create 2023/8/30 20:39
 *@version 1.0
 */



public interface State {
    
    
    void switchToGreen(TrafficLight trafficLight);  //切换为绿灯
    void switchToRed(TrafficLight trafficLight);  //切换为红灯
    void switchToYellow(TrafficLight trafficLight);  //切换为黄灯
}
